import request from '/@/utils/request';

/**
 * 登录api接口集合
 * @method signIn 用户登录
 * @method signOut 用户退出登录
 */
export function useLoginApi() {
    return {
        signIn: (data) => {
            return request({
                url: '/user/signIn',
                method: 'post',
                data,
            });
        },
        signOut: (data) => {
            return request({
                url: '/user/signOut',
                method: 'post',
                data,
            });
        },
    };
}
